home *** CD-ROM | disk | FTP | other *** search
- /* ARexx macro for Textra & SAS/C
-
- 'Find Symbol'
-
- Wow, one of the few ARexx commands Textra doesn't have... a 'get word
- under cursor' command.
-
- However, with all the other commands it has, this can be done...
- */
-
- options results
- get select position
-
- oldselect = result
-
- get cursor position
-
- oldcursor = result
-
- unselect
-
- prefs alphanumerichops read
- alhops = result
- prefs alphanumerichops on
-
- hopto prev word
- hopto next char
- hopselect next word
-
- prefs alphanumerichops alhops
-
- get select text
-
- parse var result dummy ' ' parm
-
- unselect
-
- if (oldselect ~= "NO SELECT") then do
- parse var oldselect ' ' startx ' ' starty ' ' endx ' ' endy
- gotoxy startx starty
- selectto endx endy
- end
-
- if (oldcursor ~= "SELECT") then do
- gotoxy oldcursor
- end
-
- options
-
- address command
-
- 'sc:c/gst >t:gstout sc:include/all.gst ' || parm
-
- gstrc = rc
-
- dummy1 = open('gstout','t:gstout','read')
- where = readln('gstout')
- dummy1 = close('gstout')
-
- address
-
- if (gstrc == 0) then do
- parse var where file dummy1 line dummy2
- openfile file
- gotoxy 0 line
- end
-
- 'STATUSTEXT ' || where
-
-